package in.muton.edushare.pages.univ;

import in.muton.edushare.components.forms.univsettings.UnivAcad;
import in.muton.edushare.components.forms.univsettings.UnivComm;

import java.util.Arrays;

import org.apache.wicket.PageParameters;

import com.edushare.common.constants.ApplicationConstants;
import com.edushare.common.vo.UserRoles;

public class UnivSetting extends UnivBase {

	public UnivSetting(PageParameters params) {
		super(params);
		prc.check(Arrays.asList(UserRoles.ADMIN_ROLE));
		add(new UnivComm("commForm", getModel()));
		add(new UnivAcad("acadForm", getModel()));

	}

	@Override
	public String getActivePage(PageParameters p) {
		return "UnivControlPanel";
	}

	@Override
	public String getPageTitle() {
		return getLoggedInUser().getCompleteUserName() + " | "
				+ getModel().getObject().getUniversityName() + " | Settings | "
				+ ApplicationConstants.APPLICATION_NAME;
	}

}
